package baseTest;

/**
 * 测试方法的重写与重载
 * <p>
 * 方法重载：方法名相同，方法参数类型、数量、顺序不同即可，与返回值无关
 * </p>
 */
public class OverLoadWrite {


    public static void main(String[] args) {
        byte[] bytes = "好".getBytes();
        byte[] bytes1 = "A".getBytes();
        System.out.println();
    }

    static class Person {
        protected String showName() {
            return "showName()";
        }

        private String showName(Integer a, Long b) {
            return "showName(Integer a, Long b)";
        }

        public String showName(Long b, Integer a) {
            return "showName(Long b, Integer a)";
        }

        public String haha(String... args) {
            return args.length + "";
        }

        public static void identify() {
            System.out.println("person identify");
        }

    }

    class Man extends Person {

    }

}

